﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PTCapture.PatientInfo
{
    /// <summary>
    /// Can inherit from exercise class if we want.
    /// </summary>
    [Serializable()]
    public class AssignedExercise
    {
        /// <summary>
        /// Path to image.
        /// </summary>
        [XmlElement("Reason")]
        public string _reason { get; set; }

        /// <summary>
        /// When to start doing exercise.
        /// </summary>
        [XmlElement("StartDate")]
        public DateTime _startDate { get; set; }

        /// <summary>
        /// When to stop doing exercise.
        /// </summary>
        [XmlElement("EndDate")]
        public DateTime _endDate { get; set; }

        /// <summary>
        /// Name of the exercise to follow.
        /// </summary>
        [XmlElement("ExerciseName")]
        public string _exerciseName { get; set; }

        /// <summary>
        /// Constructor.
        /// </summary>
        public AssignedExercise()
        {
        }

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="reason"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="exerciseName"></param>
        public AssignedExercise(string reason, DateTime startDate, DateTime endDate, string exerciseName)
        {
            _reason = reason;
            _startDate = startDate;
            _endDate = endDate;
            _exerciseName = exerciseName;
        }
    }
}
